package com.server.liad.api.user.remote;

import com.server.model.all.user.bo.LoginBo;
import com.server.model.all.user.bo.SmsLoginBo;
import com.server.model.all.constant.service.ServiceNameConstant;
import com.server.common.code.utils.Result;
import com.server.common.code.vo.LoginVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(contextId = "remoteUserService",value = ServiceNameConstant.LIAD_USER)
public interface RemoteUserService {

    /**
     * 登录
     * @author LXC
     * @date 2022/5/5 16:45
     */
    @PostMapping("/systemUser/private/login")
    Result<LoginVo> login(@RequestBody LoginBo loginBo);


    /**
     * 短信验证码登录
     * @author LXC
     * @date 2022/5/5 16:45
     */
    @PostMapping("/systemUser/private/smsLogin")
    Result<LoginVo> smsLogin(@RequestBody SmsLoginBo smsLoginBo);
}
